#include<stdio.h>
#include<string.h>
#define NameSize 10
struct Student //结构体
{
    int id;             //学号
    char Name[NameSize];//姓名
};

typedef struct Student Stu;

void SetStu(Stu *s,int id)
{
    s->id=id;
}

void SetName(Stu *s,const char*Name)
{
    strcpy(s->Name,Name);
}

void PrintStu(Stu *s)
{
  printf("学生学号：%d  姓名:%s\n",s->id,s->Name);
}

int main()
{
    //初始化
    Stu s;
    Setid(&s,1);
    SetName(&s,"lisi");
    PrintStu(&s);
    return 0;
}